using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MTVMusicPlugin
{
  public partial class SetupForm : Form
  {
    public Settings _settings;
    public SetupForm()
    {
      InitializeComponent();
    }

    private void SetupForm_Load(object sender, EventArgs e)
    {
      textBox_name.Text = _settings.PluginName;
      comboBox1.SelectedIndex = _settings.InitialDisplay;
    }

    private void SetupForm_FormClosing(object sender, FormClosingEventArgs e)
    {
      _settings.PluginName = textBox_name.Text;
      _settings.InitialDisplay = comboBox1.SelectedIndex;
      _settings.Save();
    }

    private void button1_Click(object sender, EventArgs e)
    {
      this.Close();
    }
  }
}